-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vw addons #137
Conversation
kupermind
commented
May 17, 2024
- Adding view functions for removed nominees;
- Correcting variable names, natspecs, comments.
// Set of removed Nominee structs | ||
Nominee[] public setRemovedNominees; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a set to push removed nominees.
/// @dev Get the total number of removed nominees. | ||
/// @notice The zero-th default nominee Id with id == 0 does not count. | ||
/// @return Total number of removed nominees. | ||
function getNumRemovedNominees() external view returns (uint256) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Number of removed nominees.
/// @dev Gets a full set of removed nominees. | ||
/// @notice The returned set includes the zero-th empty nominee instance. | ||
/// @return Set of all the removed nominees in the contract. | ||
function getAllRemovedNominees() external view returns (Nominee[] memory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simple getter for the set of removed nominees.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, thank you
/// @dev Gets a full set of removed nominees. | ||
/// @notice The returned set includes the zero-th empty nominee instance. | ||
/// @return Set of all the removed nominees in the contract. | ||
function getAllRemovedNominees() external view returns (Nominee[] memory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, thank you
doc: re-audit